package com.axzhengxin.platform.business.mapper;

import com.axzhengxin.platform.business.domain.BizApplyInfo;
import com.axzhengxin.platform.business.domain.BizRepaymentInfo;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

/**
 * 客户还款Mapper接口
 * 
 * @author axzhengxin
 * @date 2021-02-24
 */
public interface BizRepaymentInfoMapper 
{
    /**
     * 查询客户还款
     * 
     * @param repaymentId 客户还款ID
     * @return 客户还款
     */
    public BizRepaymentInfo selectBizRepaymentInfoById(String repaymentId);

    /**
     * 查询客户还款列表
     * 
     * @param bizRepaymentInfo 客户还款
     * @return 客户还款集合
     */
    public List<BizRepaymentInfo> selectBizRepaymentInfoList(BizRepaymentInfo bizRepaymentInfo);

    /**
     * 新增客户还款
     * 
     * @param bizRepaymentInfo 客户还款
     * @return 结果
     */
    public int insertBizRepaymentInfo(BizRepaymentInfo bizRepaymentInfo);

    /**
     * 修改客户还款
     * 
     * @param bizRepaymentInfo 客户还款
     * @return 结果
     */
    public int updateBizRepaymentInfo(BizRepaymentInfo bizRepaymentInfo);

    /**
     * 删除客户还款
     * 
     * @param repaymentId 客户还款ID
     * @return 结果
     */
    public int deleteBizRepaymentInfoById(String repaymentId);

    /**
     * 批量删除客户还款
     * 
     * @param repaymentIds 需要删除的数据ID
     * @return 结果
     */
    public int deleteBizRepaymentInfoByIds(String[] repaymentIds);

    /**
     * 根据LoanID获取还款集合
     * @param loanId
     * @return
     */
    BigDecimal selectBizRepaymentInfoLoanId(@Param(value = "loanId") String loanId);

    /**
     * 根
     * @param reqId
     * @param deptId
     * @return
     */
    List<BizRepaymentInfo> bizRepaymentInfoList(@Param(value = "reqId") String reqId,@Param(value ="deptId" ) String deptId);

    /**
     * reqId获取还款集合
     * @param searchApply
     * @return
     */
    List<BizRepaymentInfo> selectBizRepaymentInfoByReqId(BizApplyInfo searchApply);
}
